<?php

use think\facade\Route;

//商城后端路由表
Route::group('admin', function () {
    //分类列表
    Route::any('AdminCate/cateList', 'AdminCate/cateList');
    //添加分类
    Route::any('AdminCate/cateAdd', 'AdminCate/cateAdd');
    //编辑分类
    Route::any('AdminCate/cateUpdate', 'AdminCate/cateUpdate');
    //分类详情
    Route::any('AdminCate/cateInfo', 'AdminCate/cateInfo');
    //分类下拉框
    Route::any('AdminCate/cateSelect', 'AdminCate/cateSelect');
    //banner列表
    Route::any('AdminBanner/bannerList', 'AdminBanner/bannerList');
    //banner添加
    Route::any('AdminBanner/bannerAdd', 'AdminBanner/bannerAdd');
    //banner详情
    Route::any('AdminBanner/bannerInfo', 'AdminBanner/bannerInfo');
    //banner编辑
    Route::any('AdminBanner/bannerUpdate', 'AdminBanner/bannerUpdate');
    //课程列表
    Route::any('AdminClass/classList', 'AdminClass/classList');
    //添加课程
    Route::any('AdminClass/classAdd', 'AdminClass/classAdd');
    //课程详情
    Route::any('AdminClass/classInfo', 'AdminClass/classInfo');
    //编辑课程
    Route::any('AdminClass/classUpdate', 'AdminClass/classUpdate');
    //商品列表
    Route::any('AdminClass/goodsSelect', 'AdminClass/goodsSelect');
    //视频列表
    Route::any('AdminClass/videoList', 'AdminClass/videoList');
    //添加视频
    Route::any('AdminClass/videoAdd', 'AdminClass/videoAdd');
    //视频详情
    Route::any('AdminClass/videoInfo', 'AdminClass/videoInfo');
    //编辑视频
    Route::any('AdminClass/videoUpdate', 'AdminClass/videoUpdate');
    //课程下拉框
    Route::any('AdminClass/classSelect', 'AdminClass/classSelect');
    //活动列表
    Route::any('AdminAtv/atvList', 'AdminAtv/atvList');
    //添加活动
    Route::any('AdminAtv/atvAdd', 'AdminAtv/atvAdd');
    //活动详情
    Route::any('AdminAtv/atvInfo', 'AdminAtv/atvInfo');
    //活动编辑
    Route::any('AdminAtv/atvUpdate', 'AdminAtv/atvUpdate');

    Route::any('AdminAtv/recordList', 'AdminAtv/recordList');
    //订单列表
    Route::any('AdminOrder/orderList', 'AdminOrder/orderList');
    //订单详情
    Route::any('AdminOrder/orderInfo', 'AdminOrder/orderInfo');

    Route::any('AdminConfig/configInfo', 'AdminConfig/configInfo');

    Route::any('AdminConfig/configUpdate', 'AdminConfig/configUpdate');





});



//前端路由文件
Route::group('app', function () {
    //首页
    Route::any('IndexClass/index', 'IndexClass/index');
    //分类列表
    Route::any('IndexClass/cateList', 'IndexClass/cateList');
    //课程列表
    Route::any('IndexClass/classList', 'IndexClass/classList');
    //课程详情
    Route::any('IndexClass/classInfo', 'IndexClass/classInfo');
    //视频列表
    Route::any('IndexClass/videoList', 'IndexClass/videoList');
    //视频详情
    Route::any('IndexClass/videoInfo', 'IndexClass/videoInfo');
    //我的课程（type 1:已经有的 2：活动中的）
    Route::any('IndexClass/myClass', 'IndexClass/myClass');
    //创建活动(atv_id:活动id)
    Route::any('IndexClass/atvAdd', 'IndexClass/atvAdd');
    //活动详情
    Route::any('IndexClass/atvInfo', 'IndexClass/atvInfo');
    //领取课程(id 课程id)
    Route::any('IndexClass/addAuth', 'IndexClass/addAuth');
    //添加观看记录（class_id,video_id）
    Route::any('IndexClass/addRecord', 'IndexClass/addRecord');
    //参加集福（record_id 活动的id）
    Route::any('IndexClass/addjifu', 'IndexClass/addjifu');
    //统一下单支付(class_id)
    Route::any('IndexOrder/payOrder', 'IndexOrder/payOrder');
    //用户订单列表
    Route::any('IndexOrder/userOrderList', 'IndexOrder/userOrderList');
    //订单详情（id 订单id）
    Route::any('IndexOrder/userOrderInfo', 'IndexOrder/userOrderInfo');
    //活动完了后的支付(record_id 活动的id)
    Route::any('IndexOrder/recordPay', 'IndexOrder/recordPay');
    //重新付款
    Route::any('IndexOrder/rePay', 'IndexOrder/rePay');
    //








});

















